<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
      .main {
          width: 700px;
        
          /* background-color: rebeccapurple; */
          display: flex;
          justify-content: space-between;
          margin: 200px auto;
          flex-wrap: wrap;
         
      }
      .main div{
          opacity: 0.5;
      }
      .main div:hover{
          opacity: 1;
      }

    </style>
</head>
<body>
    <div class="main">
        <div><img src="1.jpg" alt=""></div>
        <div><img src="2.jpg" alt=""></div>
        <div><img src="3.jpg" alt=""></div>
        <div><img src="4.jpg" alt=""></div>
        <div><img src="5.jpg" alt=""></div>
        <div><img src="6.jpg" alt=""></div>
        <div><img src="7.jpg" alt=""></div>
        <div><img src="8.jpg" alt=""></div>
        <div><img src="9.jpg" alt=""></div>
        <div><img src="10.jpg" alt=""></div>
    </div>
</body>
</html>